package com.example.springcloud.rpc.api;

/**
 * 全局自定义异常
 *
 * @author fanhang
 */
public class RpcException extends RuntimeException {

    private final Integer code;

    public RpcException(int code, String message) {
        super(message);
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

}
